/*
 * author M.Chang
 *
 * Copyright 2008 Ph.Bonnet and M.Chang
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 */
#ifndef Mote_H_
#define Mote_H_

#include <iostream>
#include <set>
#include <map>
#include <sstream>

#include "DataSet.h"

class Mote
{
  public:
    Mote(std::string mote_id);
    ~Mote();

    void addDataSet(DataSet& DataSet);
    void getEventMap(std::map<std::string,std::string>& tokens_map);
    void getName(std::string&);
    bool empty();
    void setEpoch(unsigned int epoch);
    void setEnergy(unsigned int energy);
    void setSensorSparseness(unsigned int sensors);

    std::string toString();


  private:
    std::string mote_id;
    std::vector<DataSet> events;

    unsigned int epoch;
    unsigned int energy_constraint;
    unsigned int sensor_sparseness;
    int max_reward;
};



#endif /*Mote_H_*/
